var numeric_options_je_2 = {
		aSep: ',',
		dGroup: '3',
		vMin: '-999999999999.99',
		vMax: '9999999999999.99'
};

var numeric_options_bl = {
		aSign: '%',
		pSign: 's',
		vMin: '0.00',
		vMax: '100.00'					
};

var numeric_options_bl_2 = {
		aSign: '%',
		pSign: 's',
		vMin: '-9999999999999.99',
		vMax: '9999999999999.99'					
};

var numeric_options_bl_4 = {
		aSign: '%',
		pSign: 's',
		vMin: '-9999999999999.9999',
		vMax: '9999999999999.9999'					
};

//默认onchange事件处理函数
function onChange(event) {
	var event = window.event || event;
	var srcElement = event.srcElement ? event.srcElement : event.target;
				
	//数值输入框不显示零值
	hideZeroNumeric(srcElement);
}

//数值输入框不显示零值
function hideZeroNumeric(srcElement) {
	var tagName = srcElement.tagName.toUpperCase();
	if (tagName === "INPUT") {
		var str_type = $(srcElement).attr("type").toUpperCase();
		if (str_type === "TEXT") {
		    var settings = $(srcElement).data('autoNumeric');
			if (typeof(settings) === 'object') {
				var strValue = $(srcElement).autoNumeric("get");
				
				if (typeof(strValue) == "undefined" || strValue == null || strValue == "") {
					strValue = "0.00";
				} else {
					if (strValue.charAt(strValue.length - 1) == "%") {
						strValue = strValue.substr(0, strValue.length -1);
					}
				}
				var dValue = parseFloat(strValue);
				
				if (dValue == 0.00) {
					$(srcElement).val("");	
				}
			}
		}
	}
}

//根据jq对象获取
function getFloatByJqobj(jqObj) {	
	var floatValue = 0.00;
	var strValue = jqObj.autoNumeric("get");
	if (strValue != "") {
		floatValue = parseFloat(strValue) + 0.00;
	}
	
	return floatValue;
}

//根据jq对象设置金额
function setFloatByJqobj(jqObj, dValue) {
	if (dValue == null || dValue == 0.00) {
		jqObj.val("");		
	} else {
		jqObj.autoNumeric("set", dValue);	
	}
}